import os

import shutil
import uuid


# def test():
#     return


def copy_file(path):
    print('copy start')
    print('path: ' + path)
    shutil.copy(path, './apk/' + '3.txt')
    print('copy end')
    return


def get_path_abl(path):
    print(os.path.dirname(path))
    return


#
#
# path = u'1.txt'
# os.makedirs("1" + path)
# shutil.move(path, "1" + path)
#

l = os.listdir('.')
for i in l:
    if i.endswith(".txt"):
        copy_file(i)


def mac_address():
    mac = uuid.UUID(int=uuid.getnode()).hex[-12:].upper()
    return mac


get_path_abl('1.txt')
